package com.yuba.front.mapper;

import com.yuba.common.mybatis.core.mapper.BaseMapperPlus;
import com.yuba.front.domain.Posts;
import com.yuba.front.domain.param.QueryParam;
import com.yuba.front.domain.vo.PostsHotVo;
import com.yuba.front.domain.vo.PostsListVo;
import com.yuba.front.domain.vo.PostsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 帖子Mapper接口
 *
 * @author modakai
 * @date 2024-12-02
 */
public interface PostsMapper extends BaseMapperPlus<Posts, PostsVo> {

    /**
     * 游标分页
     * @param query 查询参数
     * @return 分页数据
     */
    List<PostsListVo> selectPageList(@Param("query") QueryParam query);


    List<PostsHotVo> selectVoHotList(Long categoryId);
}
